package com.aaa.three.mapper;

import com.aaa.three.pojo.domain.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface AdminQueryRoleMapper {


    List<AdminRole> queryRole();


    AdminRole getRole(int id);


    List<AdminPermission> getPoption();

    List<AdminPermission> querySOption(int id);

    /*List<AdminPermission> getPermission();
*/
    List<AdminPermission> queryPermissionState(int id);


    List<AdminPermission> queryPpermission();

    List<AdminPermission> listPermission(int id);

    /*Integer addPermission(int i1);*/

    int cleanPer(int rid);

    int queryPper(int i1 );

    int addPper(@Param("z")int z, @Param("rid")int rid);

    int addSper(@Param("i1")int i1,@Param("rid") int rid);

    int updateRoleInfo(AdminRolePermission adminRolePermission);

    int addRoleInfo(AddRole addRole);

    int addNewRolePer(@Param("i1")int i1,@Param("newId") int newId);

    int query(int i1);

    int addperid(@Param("perid")int perid,@Param("newId") int newId);

    int countPerid(@Param("perid")int perid,@Param("newId") int newId);

    int countName(String rname);

    int queryCountPper(@Param("z")int z,@Param("rid") int rid);

    int addNewPper(@Param("z")int z,@Param("rid") int rid);

    int queryCountSper(@Param("i1")int i1,@Param("rid") int rid);

    int addNewSper(@Param("i1")int i1,@Param("rid") int rid);

    int perSper(@Param("i1")int i1,@Param("rid")  int rid);


}
